<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>侦听器检测变化的变化</title>
</head>
<body>
<div id="app">
  <input type="text" v-model="name">
</div>
<script src="../../../../../js/vue.global.js"></script>
<script>
  const app = Vue.createApp({
    data(){
      return {
        name:null,
      }
    },
    methods:{

    },
    computed:{

    },
    watch:{
      name(value){
        console.log("当前输入框中的内容：" + value);
      }
    }
  })

  app.mount("#app")
</script>
</body>
</html>